package 刷题10月.脑筋急转弯类型;
// https://leetcode-cn.com/problems/bulb-switcher/
public class 数学319灯泡开关1006 {
    class Solution {
        public int bulbSwitch(int n) {
            if(n<=1){
                return n;
            }
            if(n==2||n==3){
                return 1;
            }
            return (int)Math.sqrt(n);

        }
    }
}
